package com.hdoit.kylin.logical.studentManager.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.studentManager.dao.IExperimentExcelDao;
import com.hdoit.kylin.logical.studentManager.model.ExperimentExcel;
import com.hdoit.kylin.logical.studentManager.service.IExperimentExcelService;
import com.hdoit.kylin.logical.viewmodel.ExperimentExcelSearch;

/**
 * @author admin
 * @email
 * @createtime 2017年07月21日 14:20:49
 * @comment
 */
@Component
public class ExperimentExcelServiceImpl extends SuperService<ExperimentExcel>
		implements IExperimentExcelService {
	private IExperimentExcelDao experimentExcelDao;

	public IExperimentExcelDao getExperimentExcelDao() {
		return experimentExcelDao;
	}

	@Resource
	public void setExperimentExcelDao(IExperimentExcelDao experimentExcelDao) {
		this.experimentExcelDao = experimentExcelDao;
	}

	public List<ExperimentExcel> queryListByExperimentId(PagerModel pagerModel ,String experimentId){
		return experimentExcelDao.queryListByExperimentId( pagerModel, experimentId);
	}
	
	public int queryCountByExperimentId(String experimentId){
		return experimentExcelDao.queryCountByExperimentId(experimentId);
	}
	
	public int queryCountByExperimentId(ExperimentExcelSearch search,
			String experimentId) {
		return experimentExcelDao
				.queryCountByExperimentId(search, experimentId);
	}

	public List<ExperimentExcel> queryListByExperimentId(
			ExperimentExcelSearch search, PagerModel pagerModel,
			String experimentId) {
		return experimentExcelDao.queryListByExperimentId(search, pagerModel, experimentId);

	}
}